import 'package:flutter/material.dart';
import 'package:flutter_demo/gift_panel/gift_panel_content_avatar_list.dart';
import 'package:flutter_demo/utils/h_color.dart';

class GiftPanelContent extends StatelessWidget {
  const GiftPanelContent({super.key});

  @override
  Widget build(BuildContext context) {
    final screenSize = MediaQuery.of(context).size;

    return Container(
      width: screenSize.width,
      height: screenSize.height * 0.5,
      // 上面两个角设置圆角
      decoration: BoxDecoration(
        color: hColor("#211F29"),
        borderRadius: BorderRadius.only(
          topLeft: Radius.circular(16),
          topRight: Radius.circular(16),
        ),
      ),

      // 内部子元素
      child: Padding(
        padding: EdgeInsets.all(16),
        child: Column(children: [GiftPanelContentAvatarList()]),
      ),
    );
  }
}
